home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
E-Education
/
(c)e8.d64
/
organic names.d
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
11KB
|
385 lines
0 CLR:PRINT"[147]":POKE53280,11:POKE53281,11
4 OPEN2,8,2,"0:ORGANIC SET.D,S,R"
5 FORA=2048TO4095:GET#2,A$:POKEA,ASC(A$+CHR$(0)):NEXT:CLOSE2
6 POKE 53272,21
7 FORA=49152TO49180:READB:POKEA,B:NEXT
8 DATA 169,1,162,0,157,0,216,232,208,250,157,0,217,232,208,250,157,0,218,232
9 DATA208,250,157,0,219,232,208,250,96
10 SC=-31744:REM SC=1024-32768 FOR C64
12 REM ORGANIC NOMENCLATURE
16 REM
20 REM D. W. TRANKNER
24 REM
28 REM GENERALLY UP TO 10 CARBON ATOMS
32 REM
36 REM 300 1) ALKANES (1-10)
38 REM 400 2) #-METHYL ALKANES (2-10)
40 REM 500 3) 1-ALKENES (2-10)
44 REM 600 4) 2-ALKENES (4-6)(C&T)
48 REM 700 5) 1-ALKYNES (2-6)
50 REM 800 6) 2-ALKYNES (4-6)
56 REM 900 7) #-ALKANOLS(1-6)
58 REM 1000 8) #-AMINES (1-6)
60 REM 1100 9) #-HALO ALKANES(1-6)
62 REM 120010) ALKANALS-ONES (1-6)
66 REM 130012) ALKANOIC ACIDS(1-6)
68 REM 150013) ESTERS (METHYLÐYL)
70 REM
100 PRINT"[147]"TAB(10);"ORGANIC CHEMISTRY"
102 PRINT""TAB(12);"NOMENCLATURE
104 [129]I[178]1[164]1500:[130]I
200 [153]"LOAD"
204 [143]-LOWER (METHANE) ALKANYL GROUP-
205 EL$[178]"ONLEFT$^CMD#CMDLEFT$ONONLENWAIT&WAITCMDLEFT$CMDONONON_ONLEFT$"
209 [143]-UPPER (METHANE) ALKANYL GROUP-
210 EH$[178]"LEFT$ON_ONLENCMDCMDON!CMDONLEFT$ LEFT$CMD%CMD^LEFT$"
214 [143]-CENTER (ETHENE) ALKENYL GROUP-
215 AE$[178]" ^CMD_CMDONONLEN\LEN^CMDLEFT$CMDONONON_ONLEFT$"
219 [143]-CENTER (ETHYNE) ALKYNL GROUP-
220 AY$[178]"LEFT$[LEN]LEN[LEFT$"
238 Y$[178]""[170][202](AY$,2)[170]"CMD"
240 LA$[178]"CMD"[170]AE$[170]"CMDCMD"
242 UA$[178]"CMDONON"[170]AE$[170]"CMDCMD"
244 UH$[178]"CMDONONONLEFT$"
246 LH$[178]"CMDLEFT$ONONON"
248 LF$[178][200](EL$,25)
250 UF$[178][200](EH$,20)
252 LM$[178][202](EL$,4,22)
254 UM$[178][202](EH$,3,18)
256 LE$[178][202](EL$,4)
258 UE$[178][202](EH$,3)
260 [153]"LOAD ORGANIC NAMES AND FORMULAE"
261 [153]" TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB(TAB("
262 [153]"IN THIS PROGRAM YOU WILL BE GIVEN A"
263 [153]"SELECTION OF FUNCTIONAL GROUPS WITH"
264 [153]"WHICH TO PRACTICE YOUR ABILITY TO NAME"
265 [153]"ORGANIC MOLECULES FROM BOTH 3-D DIAGRAMS"
266 [153]"AND STRUCTURAL FORMULAE.
267 PRINT"THE MOLECULES ARE RANDOMLY GENERATED"
268 PRINT"AFTER EACH PUSH OF ANY KEY WITH THE"
269 PRINT"EXCEPTION OF THE ALKANES WITH WHICH YOU"
270 PRINT"CAN ALSO CALL FOR ANY SPECIFIC NUMBER OF"
271 PRINT"CARBON ATOMS USING THE NUMERIC KEYPAD."
272 PRINT"PRESS <RETURN>[146] WHEN READY";
273 GETA$:IFA$=""THEN273
278 POKE53272,21:RR=0:PRINT"[147] ORGANIC NAMES AND FORMULAE"
279 PRINT" [163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
280 PRINT" 1) ALKANES"
281 PRINT" 2) #-METHYL ALKANES"
282 PRINT" 3) 1-ALKENES"
283 PRINT" 4) 2-ALKENES (CIS&TRANS)"
284 PRINT" 5) 1-ALKYNES"
286 PRINT" 6) 2-ALKYNES"
288 PRINT" 7) #-ALKANOLS"
289 PRINT" 8) #-AMINO ALKANES"
290 PRINT" 9) #-CHLORO ALKANES"
291 PRINT" 10) ALKANALS-ONES"
292 PRINT" 11) ALKANOIC ACIDS"
293 PRINT" 12) ESTERS"
294 PRINT" 13) RANDOM MOLECULES"
297 PRINT"ENTER NUMBER THEN PRESS <RETURN>[146]"
298 PRINT"[145][145]WHAT SECTION DO YOU WANT";:INPUTA:POKE53272,19
299 ONAGOTO300,400,500,600,700,800,900,1000,1100,1200,1300,1400,1500
300 REM-'ALKANES'-RANDOM GENERATION AND -NAMES FROM 1 TO 10 CARBON ATOMS
301 A=INT(2*RND(0)+1):REM-1 MEANS 3-D'S -2 MEANS STR-FORM--
302 C=INT(10*RND(0)+1):FG$="ANE": SM=0:SE=0:REM-FROM SUBSTITUENT SUB-ROUTINES-
304 PRINT"[147]":IFSE>0THENPRINT""
308 CT$="":N$="":TM$="":IFA=1ANDC=2*INT(C/2)THEN316
310 IFA=2THEN317
312 FORI=1TOC/2:GOTO320
316 FORI=1TOC/2-1
317 IFA=2THENFORI=1TOC-2
320 EE$=UE$:FF$=LF$:IFA=2THENEE$="[195][200]3":FF$=EE$
324 IFA=2ANDC=1THENTM$="[157]4":EE$="":GOTO345
326 IFC=1THENTM$="":EE$="_[145][200]":GOTO345
328 IFC=2THENTM$="":GOTO345
332 IFA=1THENTM$=TM$+UM$+LM$
333 IFA=2THENTM$=TM$+"[195][200]2"
340 IFA=1ANDC<>2*INT(C/2)THENEE$="_[145][200]"
344 NEXTI
345 E1$="":IFSE=1THENE1$=" "
346 IFSE=2THENE1$=" ":IFA=1THENFF$=UF$+"[157]"
347 IFSE>0ANDC=1ANDA=2THENTM$="[200]"
348 PRINT""FF$;E1$;TM$;EE$
350 IFSM=1THENRETURN
352 GETA$:IFA$=""THEN352
353 IFA=2THENA=1:GOTO355
354 IFA$="R"ANDA=1THENA=2
355 IFA$="R"THENPRINT"":GOTO308
358 PRINT"";
359 ONCGOSUB381,382,383,384,385,386,387,388,389,390
360 GETA$:IFA$=""THEN360
361 IFA$="/"THENC=10:GOTO304
362 Z=VAL(A$):IFZ>0THENC=Z:GOTO304
368 IFA$="X"THEN278
370 IFRR=1THEN RETURN
372 GOTO300
381 PRINTTAB(5);CT$;N$;"METH";FG$:RETURN
382 PRINTTAB(5);CT$;N$;"ETH";FG$:RETURN
383 PRINTTAB(5);CT$;N$;"PROP";FG$:RETURN
384 PRINTTAB(5);CT$;N$;"BUT";FG$:RETURN
385 PRINTTAB(5);CT$;N$;"PENT";FG$:RETURN
386 PRINTTAB(5);CT$;N$;"HEX";FG$:RETURN
387 PRINTTAB(5);CT$;N$;"HEPT";FG$;:RETURN
388 PRINTTAB(5);CT$;N$;"OCT";FG$;:RETURN
389 PRINTTAB(5);CT$;N$;"NON";FG$;:RETURN
390 PRINTTAB(5);CT$;N$;"DEC";FG$;:RETURN
400 REM-'#-METHYL ALKANES'-RANDOM GENERATION FROM 2 TO 6 CARBON ATOMS
401 A=INT(2*RND(0)+1):REM-1 MEANS 3-D'S -2 MEANS STR-FORM--
402 C=INT(8*RND(0)+2): SA=0: SE=0:REM-FROM SUBSTITUENT SUB-ROUTINES-
404 X1=67:X2=72:X3=51
406 PRINT"[147]"
410 SM=1:GOSUB308
420 PRINT""
425 CH=INT(C*RND(0)+1):IFCH=1ORCH=C THENCH=INT(C*RND(0)+1)
426 SYS49152:IFA=2THENN=3*CH:GOTO445
430 N=2*CH:IFCH=2*INT(CH/2)THEN440
435 POKESC+33370+N+SA,X1:POKESC+33371+N+SA,X2:IFSA=0THENPOKESC+33372+N+SA,X3
437 GOTO452
440 IFPEEK(SC+33172+N+SA)=28THENX3=28
442 POKESC+33130+N+SA,X1:POKESC+33131+N+SA,X2:IFSA=0THENPOKESC+33132+N+SA,X3
444 GOTO452
445 POKESC+33207+N,40:POKESC+33167+N,X1:POKESC+33168+N,X2:POKESC+33169+N,X3
447 IFPEEK(SC+33249+N)=51THENPOKESC+33249+N,50:GOTO452
448 POKESC+33249+N,49
452 IFSA=1THENRETURN
453 IFSB=1THENRETURN
454 GETA$:IFA$=""THEN454
455 PRINT"";
456 IFC=2THENC=C+1:N$="":CT$="":GOTO460
457 N$="METHYL ":CT$=STR$(CH)+"-":IFC>2ANDCH>C/2THENCT$=STR$(C-CH+1)+"-"
459 IFCT$=" 1-"THENCT$="":N$="":C=C+1
460 FG$="ANE":ONCGOSUB381,382,383,384,385,386,387,388,389,390
465 GETA$:IFA$=""THEN465
468 IFA$="X"THEN278
470 IFRR=1THENRETURN
472 GOTO400
500 REM-'1-ALKENES'-RANDOM GENERATION AND NAMES FROM 2 TO 10 CARBON ATOMS
501 A=INT(2*RND(0)+1):REM-1 MEANS 3-D'S -2 MEANS STR-FORM--
502 C=INT(9*RND(0)+2)
504 PRINT"[147]"
508 FG$="ENE":CT$="":TM$=""
510 IFA=2THEN517
512 FORI=2TOC/2:GOTO520
517 IFA=2THENFORI=2TOC-2
520 EE$=UE$:FF$="[200][145]"+UH$+UA$:IFA=2THENEE$="[195][200]3":FF$="[200]2[195]\[195][200]"
524 IFC=2ANDA=1THENTM$="":EE$="_[145][200]":GOTO548
526 IFC=2ANDA=2THENTM$="":EE$="2":GOTO548
528 IFC=3THENTM$="":GOTO548
532 IFA=1THENTM$=TM$+UM$+LM$
533 IFA=2THENTM$=TM$+"[195][200]2"
540 IFA=1ANDC=2*INT(C/2)THENEE$="_[145][200]"
544 NEXTI
548 PRINT"";FF$;TM$;EE$
552 GETA$:IFA$=""THEN552
555 PRINT"";
556 N$="1-":IFC<3THENN$=""
557 ONCGOSUB381,382,383,384,385,386,387,388,389,390
560 GETA$:IFA$=""THEN560
568 IFA$="X"THEN278
570 IFRR=1THENRETURN
572 GOTO500
600 REM-'2-ALKENES'-RANDOM GENERATION AND NAMES FROM 4 TO 10 CARBON ATOMS
602 C=INT(7*RND(0)+4)
604 PRINT"[147]"
608 FG$="ENE":TM$="":IFC=2*INT(C/2)THEN616
612 FORI=2TOC/2:GOTO620
616 FORI=2TOC/2-1
620 EE$=UE$
624 IFC=4THENTM$="":GOTO646
632 TM$=TM$+UM$+LM$
640 IFC<>2*INT(C/2)THENEE$="_[145][200]"
644 NEXTI
646 D=INT(2*RND(0)+1):ONDGOTO648,650
648 PRINT" ";UF$;LH$;LA$;TM$;EE$:CT$="CIS-":GOTO652
650 PRINT" ";LF$;UH$;"[145][145]";LA$;TM$;EE$:CT$="TRANS-"
652 GETA$:IFA$=""THEN652
655 PRINT"";
656 N$="2-":ONCGOSUB381,382,383,384,385,386,387,388,389,390
660 GETA$:IFA$=""THEN660
668 IFA$="X"THEN278
670 IFRR=1THENRETURN
672 GOTO600
700 REM-'1-ALKYNES'-RANDOM GENERATION AND NAMES FROM 2 TO 6 CARBON ATOMS
701 A=INT(2*RND(0)+1):REM-1 MEANS 3-D'S -2 MEANS STR-FORM--
702 C=INT(5*RND(0)+2)
704 PRINT"[147]"
708 FG$="YNE":CT$="":TM$=""
710 IFA=2THEN717
712 FORI=2TOC/2:GOTO720
717 IFA=2THENFORI=2TOC-2
720 EE$=UE$:FF$="[200][145]"+Y$:IFA=2THENEE$="[195][200]3":FF$=AY$+"[157]"
724 IFC=2THENTM$="":EE$="":GOTO748
726 IFC=3ANDA=1THENEE$=MID$(UE$,2):GOTO748
728 IFC=3ANDA=2THEN748
730 MM$=UM$:IFI=2THENMM$=MID$(UM$,2)
732 IFA=1THENTM$=TM$+MM$+LM$
733 IFA=2THENTM$=TM$+"[195][200]2"
740 IFA=1ANDC=2*INT(C/2)THENEE$="_[145][200]"
744 NEXTI
748 PRINT"";FF$;TM$;EE$
752 GETA$:IFA$=""THEN752
755 PRINT"";
756 N$="1-":IFC=2THENN$=""
757 ONCGOSUB381,382,383,384,385,386
760 GETA$:IFA$=""THEN760
768 IFA$="X"THEN278
770 IFRR=1THENRETURN
772 GOTO700
800 REM-'2-ALKYNES'-RANDOM GENERATION AND NAMES FROM 4 TO 6 CARBON ATOMS
801 A=INT(2*RND(0)+1):REM-1 MEANS 3-D'S -2 MEANS STR-FORM--
802 C=INT(3*RND(0)+4)
804 PRINT"[147]"
808 FG$="YNE":CT$="":TM$=""
810 IFA=2THEN817
812 FORI=2TOC/2-1:GOTO820
817 IFA=2THENFORI=2TOC-3
820 EE$=UE$:FF$=LF$:YY$=Y$:IFA=2THENEE$="[195][200]3":FF$=EE$+"[145][157]":YY$=Y$+"[145]"
826 IFC=4ANDA=1THENEE$=MID$(UE$,2):GOTO848
828 IFC=4ANDA=2THEN848
830 MM$=UM$:IFI=2THENMM$=MID$(UM$,2)
832 IFA=1THENTM$=TM$+MM$+LM$
833 IFA=2THENTM$=TM$+"[195][200]2"
840 IFA=1ANDC<>2*INT(C/2)THENEE$="_[145][200]"
844 NEXTI
848 PRINT"";FF$;YY$;TM$;EE$
852 GETA$:IFA$=""THEN852
855 PRINT"";
856 N$="2-":ONCGOSUB381,382,383,384,385,386
860 GETA$:IFA$=""THEN860
868 IFA$="X"THEN278
870 IFRR=1THENRETURN
872 GOTO800
900 REM-'#-ALKANOLS'-RANDOM GENERATION AND NAMES FROM 1 TO 6 CARBON ATOMS
901 A=INT(2*RND(0)+1):REM-1 MEANS 3-D'S -2 MEANS STR-FORM--
902 C=INT(6*RND(0)+1):IFA=2ANDC=1THENC=2
904 X1=79:X2=72:X3=32
905 SA=1:GOSUB406
908 FG$="ANOL":CT$=""
952 GETA$:IFA$=""THEN952
955 PRINT"";
957 N$=STR$(CH)+"-":IFCH>C/2THENN$=STR$(C-CH+1)+"-"
958 IFC<3THENN$=""
960 ONCGOSUB381,382,383,384,385,386
965 GETA$:IFA$=""THEN965
968 IFA$="X"THEN278
970 IFRR=1THENRETURN
972 GOTO900
1000 REM-'#-AMINO ALKANES'-RANDOM GENERATION AND NAMES FROM 1 TO 6 CARBON ATOM
1001 A=INT(2*RND(0)+1):REM-1 MEANS 3-D'S -2 MEANS STR-FORM--
1002 C=INT(6*RND(0)+1):SA=0:IFA=2ANDC=1THENC=2
1004 X1=78:X2=72:X3=50
1005 SM=1:SB=1:GOSUB406
1008 FG$="ANE":N$="AMINO "
1052 GETA$:IFA$=""THEN1052
1055 PRINT"";
1057 CT$=STR$(CH)+"-":IFCH>C/2THENCT$=STR$(C-CH+1)+"-"
1058 IFC=1THENCT$=""
1060 ONCGOSUB381,382,383,384,385,386
1065 GETA$:IFA$=""THEN1065
1068 IFA$="X"THEN278
1070 IFRR=1THENRETURN
1072 GOTO1000
1100 REM-'#-CHLORO ALKAES'-RANDOM GENERATIONAND NAMES FROM 1 TO 6 CARBON ATOMS
1101 A=INT(2*RND(0)+1):REM-1 MEANS 3-D'S -2 MEANS STR-FORM--
1102 C=INT(6*RND(0)+1):IFA=2ANDC=1THENC=2
1104 X1=67:X2=12:X3=32
1105 SA=1:GOSUB406
1108 FG$="ANE":N$="CHLORO "
1152 GETA$:IFA$=""THEN1152
1155 PRINT"";
1157 CT$=STR$(CH)+"-":IFCH>C/2THENCT$=STR$(C-CH+1)+"-"
1158 IFC=1THENCT$=""
1160 ONCGOSUB381,382,383,384,385,386
1165 GETA$:IFA$=""THEN1165
1168 IFA$="X"THEN278
1170 IFRR=1THENRETURN
1172 GOTO1100
1200 REM-'ALKANAL-ONES'-RANDOM GENERATION AND NAMES FROM 1 TO 6 CARBON ATOMS
1201 A=INT(2*RND(0)+1):REM-1 MEANS 3-D'S -2 MEANS STR-FORM--
1202 C=INT(6*RND(0)+1):SO=0
1204 X1=79:X2=32:X3=72:X4=41:X5=27
1206 PRINT"[147]"
1208 SM=1:GOSUB308
1210 FG$="ANONE":N$=""
1220 PRINT""
1225 CH=INT(C*RND(0)+1)
1226 SYS49152:IFA=2THENN=3*CH:GOTO1245
1230 N=2*CH:IFCH=2*INT(CH/2)THEN1240
1235 POKESC+33369+N,X2:POKESC+33370+N,X1:POKESC+33371+N,X2:POKESC+33329+N,X2
1237 POKESC+33330+N,X4:POKESC+33331+N,X2:GOTO1252
1240 POKESC+33129+N,X2:POKESC+33130+N,X1:POKESC+33131+N,X2:POKESC+33169+N,X2
1242 POKESC+33170+N,X4:POKESC+33171+N,X2:GOTO1252
1245 POKE1424+N,X1:POKESC+33208+N,X4:POKESC+33247+N,X5:POKESC+33248+N,67:POKESC+33249+N,X5
1246 IFCH=CANDA=2THENPOKESC+33250+N,72
1247 IFCH=1ANDA=2THENPOKESC+33246+N,72
1248 POKESC+33289+N,32
1252 GETA$:IFA$=""THEN1252
1255 PRINT"";
1257 CT$=STR$(CH)+"-":IFCH>C/2THENCT$=STR$(C-CH+1)+"-"
1258 IFCH=1ORCH=CTHENFG$="ANAL":CT$=""
1260 ONCGOSUB381,382,383,384,385,386
1265 GETA$:IFA$=""THEN1265
1268 IFA$="X"THEN278
1270 IFRR=1THENRETURN
1272 GOTO1200
1300 REM-'ALKANOIC ACIDS'-RANDOM GENERATION AND NAMES FROM 1 TO 6 CARBON ATOMS
1301 A=INT(2*RND(0)+1):REM-1 MEANS 3-D'S -2 MEANS STR-FORM--
1302 C=INT(6*RND(0)+0)
1304 X1=79:X2=32:X3=72:X4=40:X5=45
1306 PRINT"[147]"
1307 IFC=0ANDA=1THENPRINT"[200][":GOTO1320
1308 IFC=0THENGOTO1320
1310 SM=1:GOSUB308
1320 PRINT""
1325 C=C+1:CH=C
1326 SYS49152:IFA=2THENN=3*CH:GOTO1345
1330 N=2*CH:IFCH=2*INT(CH/2)THEN1340
1335 POKESC+33290+N,67:POKESC+33331+N,30:POKESC+33372+N,X1
1336 POKESC+33373+N,X3:POKESC+33212+N,X1
1337 POKESC+33251+N,43:GOTO1352
1340 POKESC+33130+N,X2:POKESC+33210+N,67:POKESC+33171+N,43:POKESC+33132+N,X1
1342 POKESC+33251+N,30:POKESC+33292+N,X1:POKESC+33293+N,X3:GOTO1352
1345 POKESC+33169+N,X1:POKESC+33208+N,43:POKESC+33247+N,67:ZZ=SC+33329+N
1346 IFCH=CANDA=2THENPOKESC+33288+N,30:POKEZZ,X1:POKESC+33330+N,X3:IFC=1THENPOKESC+33249,72
1347 IFPEEK(SC+33246+N)=51THENPOKESC+33246+N,50:GOTO1352
1348 IFPEEK(SC+33246+N)=52THENPOKESC+33246+N,51:GOTO1352
1352 GETA$:IFA$=""THEN1352
1355 PRINT"";
1358 FG$="ANOIC ACID":CT$=""
1360 ONCGOSUB381,382,383,384,385,386
1365 GETA$:IFA$=""THEN1365
1368 IFA$="X"THEN278
1370 IFRR=1THENRETURN
1372 GOTO1300
1400 REM-'ESTERS'-RANDOM GENERATION AND NAMES FROM 1 TO 6 CARBON ATOMS
1401 A=INT(2*RND(0)+1):REM-1 MEANS 3-D'S -2 MEANS STR-FORM--
1402 C=INT(6*RND(0)+1)
1404 FG$="ANOATE":ES$="_[145][207]^[195][157])[157][207]" :SS$=LM$
1408 SE=INT(2*RND(0)+1):ONSEGOTO1410,1430
1410 SE=1:SM=1:GOSUB304
1412 IFA=2THENES$="[145][207][[195][145][157])[145][157][207][":GOTO1420
1415 IFC=2*INT(C/2)THENPRINT"[145][145]";
1420 PRINT"";ES$
1423 CT$="METHYL "
1425 GOTO1452
1430 SE=2:SM=1:GOSUB304
1432 IFA=1ANDC<>2*INT(C/2)THENPRINT"";
1435 IFA=2THENES$="[195][200]2[207][[195][145][157])[145][157][207][":SS$=""
1440 PRINT"[145][145]";SS$;ES$
1445 CT$="ETHYL "
1452 GETA$:IFA$=""THEN1452
1455 PRINT"";
1460 ONCGOSUB381,382,383,384,385,386
1462 SE=0
1465 GETA$:IFA$=""THEN1465
1468 IFA$="X"THEN278
1470 IFRR=1THENRETURN
1472 GOTO1400
1500 REM-RANDOM NAMES AND FORMULAS-
1510 RR=1:SE=0:SB=0:FG$="":N$="":CT$=""
1520 I=INT(12*RND(0)+1)
1530 ONIGOSUB300,400,500,600,700,800,900,1000,1100,1200,1300,1400
1550 GOTO1510
9999 END